<%--
  Created by IntelliJ IDEA.
  User: lenovo
  Date: 2018-04-19
  Time: 16:28
  To change this template use File | Settings | File Templates.
--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>权限管理</title>
    <link href="/statics/css/bootstrap.css" rel="stylesheet">
    <link rel="stylesheet" href="/statics/css/plugins/bootstrap-table/bootstrap-table.min.css">
    <script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <link rel="stylesheet" href="/statics/css/plugins/sweetalert/sweetalert.css">
    <link rel="stylesheet" href="/statics/css/plugins/datapicker/datepicker3.css">
    <link href="/statics/css/privilegeManage.css" rel="stylesheet">
</head>
<body>
<%--上方工具栏--%>
<div class="container">
    <div class="row text-center" style="margin-top: 10px">
        <div class="col-lg-4">
            <button class="btn btn-success form-inline" onclick="javascript:addPrivilege();">添加权限</button>
        </div>
        <div class="col-lg-4">
            按父权限查询
            <select id="parent-select" onchange="javascript:getPrivilegeByParentId();">
                <option value="0" selected>全部</option>
                <c:forEach items="${parentList}" var="parent">
                    <option value="${parent.id}">${parent.name}</option>
                </c:forEach>
            </select>
        </div>
    </div>
</div>
<%--数据载体--%>
<table id="table"></table>
<%--修改权限模态框--%>
<div id="changePrivilegeModal" class="modal fade" tabindex="-1" role="dialog">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span>
                </button>
                <h4 class="modal-title">修改权限</h4>
            </div>
            <div class="modal-body">

            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <button type="button" class="btn btn-primary" onclick="javascript:changePrivilegeSubmit()">提交</button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<%--添加权限模态框--%>
<div id="addPrivilegeModal" class="modal fade" tabindex="-1" role="dialog">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span>
                </button>
                <h4 class="modal-title">添加权限</h4>
            </div>
            <div class="modal-body">

            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <button type="button" class="btn btn-primary" onclick="javascript:addPrivilegeSubmit()">提交</button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<script src="/statics/js/jquery-3.2.1.min.js"></script>
<script src="/statics/js/bootstrap.js"></script>
<script src="/statics/js/plugins/bootstrap-table/bootstrap-table.min.js"></script>
<script src="/statics/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
<script src="/statics/js/plugins/sweetalert/sweetalert.min.js"></script>
<script src="/statics/js/plugins/datapicker/bootstrap-datepicker.js"></script>
<script src="/statics/js/privilegeManage.js"></script>
</body>
</html>
